package org.tema.ejb;

import java.sql.Date;
import java.util.Collection;
import java.util.Set;

import org.tema.entities.Report;
import org.tema.entities.TestPlan;

public interface TestPlanBeanLocal {
	public TestPlan addTestPlan(Collection <String> testCasesToAdd, String productName, String summary, String testCycle, double planedTime, Date sDate, Date eDate, Date mDate, Date cDate, String creatorUser ); 
	public TestPlan  updateTestPlan(TestPlan testPlan, String modifier);
	public TestPlan undoTestPlanChanges(TestPlan testPlan);
	public void deleteTestPlan(TestPlan testPlan);
	public Collection <TestPlan> findAllTestPlans();
	public Report generateReport( TestPlan tPlan);
	
	
	//added searches
	public TestPlan findTestPlanById( int id );
	public TestPlan findTestPlanBySummary( String summary );
	public Collection <TestPlan> findTestPlansBySummary( String summary );
	public Collection <TestPlan > findTestPlanByProductName( String productName );
	public Collection <TestPlan> findTestPlanByProductId( int productId );
	public Collection <TestPlan> findTestPlanByCDate( Date cDate );
	public Collection <TestPlan> findTestPlanByMDate( Date mDate );
}
